<?php /* Smarty version Smarty-3.1.21-dev, created on 2015-11-05 09:13:05
         compiled from "H:\WebApplication\myconpany\sumi_mobile\application\views\user\buylist.html" */ ?>
<?php /*%%SmartyHeaderCode:3739561e3e2094df84-63962458%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8bb70f18ab502a3781e04c2daa6f9fc383b3d2b0' => 
    array (
      0 => 'H:\\WebApplication\\myconpany\\sumi_mobile\\application\\views\\user\\buylist.html',
      1 => 1446607402,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3739561e3e2094df84-63962458',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_561e3e20dda876_87366259',
  'variables' => 
  array (
    'status' => 0,
    'list' => 0,
    'item' => 0,
    'links' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_561e3e20dda876_87366259')) {function content_561e3e20dda876_87366259($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/header.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!--header stop-->
<?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/common/headerusertitle.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!--header end-->
<!--content stop-->
<section class="box-user">

    <ul class="user_d">
        <li <?php if ($_smarty_tpl->tpl_vars['status']->value=='all') {?>class="curr"<?php }?>><a href="/user/buylist/status/all">全部</a></li>
        <li <?php if ($_smarty_tpl->tpl_vars['status']->value=='wait_audit') {?>class="curr"<?php }?>><a href="/user/buylist/status/wait_audit">待审核</a></li>
        <li <?php if ($_smarty_tpl->tpl_vars['status']->value=='audit') {?>class="curr"<?php }?>><a href="/user/buylist/status/audit">待报价</a></li>
        <li <?php if ($_smarty_tpl->tpl_vars['status']->value=='Negotiate') {?>class="curr"<?php }?>><a href="/user/buylist/status/Negotiate">洽谈中</a></li>
        <li <?php if ($_smarty_tpl->tpl_vars['status']->value=='Trading') {?>class="curr"<?php }?>><a href="/user/buylist/status/Trading">交易中</a></li>
        <li <?php if ($_smarty_tpl->tpl_vars['status']->value=='done') {?>class="curr"<?php }?>><a href="/user/buylist/status/done">完成</a></li>
    </ul>

    <ul class="qm_list">
        <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
        <li>
            <div class="qm_text">
                <p>
                    <span class="pl5p green fr"><?php echo $_smarty_tpl->tpl_vars['item']->value['status'];?>
</span>
                    <?php if ($_smarty_tpl->tpl_vars['item']->value['product_id']=='') {?>
                    <span class="pr10p"><?php echo $_smarty_tpl->tpl_vars['item']->value['remark'];?>
</span>
                    <?php } else { ?>
                    <span class="pr10p"><?php echo $_smarty_tpl->tpl_vars['item']->value['cate_name'];?>
</span>
                    <span class="pr10p"><?php echo $_smarty_tpl->tpl_vars['item']->value['product_name'];?>
</span>
                    <span class="pr10p"><?php echo $_smarty_tpl->tpl_vars['item']->value['brand_name'];?>
</span>
                    <span class="pr10p">交货地:<?php echo $_smarty_tpl->tpl_vars['item']->value['delivery_area'];?>
</span>
                    <span class="pr10p orange" style="display: block;">单价:￥<?php echo $_smarty_tpl->tpl_vars['item']->value['price'];?>
/吨 　数量:<?php echo $_smarty_tpl->tpl_vars['item']->value['num'];?>
吨 </span>
                    <?php }?>
                </p>
                <P class="gray">求购公司：<?php echo $_smarty_tpl->tpl_vars['item']->value['business_name'];?>
</P>
                <p class="gray">时间: <?php echo $_smarty_tpl->tpl_vars['item']->value['update_time'];?>
</p>
            </div>
            <a href="/user/buylistdetail/id/<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
" class="qm_cz">详情</a>
        </li>
        <?php } ?>
    </ul>
    <div class="page">
        <?php echo $_smarty_tpl->tpl_vars['links']->value;?>

    </div>
</section>


<!--content end-->


<?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/footer.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php }} ?>
